package com.example.libraryms.utils;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author Cauli
 * @date 2023/7/31 11:55
 * @description 全局返回结果码 枚举类
 */
@Getter
@AllArgsConstructor
public enum ResultCodeEnum {
    SUCCESS(true, 200, "成功"),
    UNKNOWN_ERROR(false, 999999, "未知错误");

    private final Boolean success;

    private final Integer code;

    private final String message;
}
